package com.mllweb.api.core.log;

/**
 * 日志输出
 */
public interface Logger {
    default void debug(String debug) {
        org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
        logger.debug(debug);
    }

    default void info(String info) {
        org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
        logger.info(info);
    }

    default void error(String error) {
        org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
        logger.error(error);
    }

    default void warn(String warn) {
        org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
        logger.warn(warn);
    }

    default void trace(String trace) {
        org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(this.getClass());
        logger.trace(trace);
    }
}
